import 'package:flutter/material.dart';
import 'package:webview_flutter/webview_flutter.dart';

import '../../utils/component/component.dart';

/// @Author : 王亚东

/// @Time : On 2022/4/27 11:36

class H5Page extends StatefulWidget {
  H5Page(this.title, this.url);
  String title;
  String url;

  @override
  State<H5Page> createState() => _H5PageState();
}

class _H5PageState extends State<H5Page> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: detailAppBar(context, title: widget.title),
      body: WebView(
        initialUrl: widget.url,
        javascriptMode: JavascriptMode.unrestricted,
      ),
    );
  }
}
